const { defineConfig } = require("@vue/cli-service");
module.exports = defineConfig({
  transpileDependencies: true,
  // 允许打包的结果，以文件方式访问
  publicPath: "./",
  // 去掉js中的map文件
  productionSourceMap: false,
  // 打包时，排除那些包
  configureWebpack: {
    externals: {
      // 键（包名）:"引入echarts.js后,window中多了什么"
      axios: "axios",
      vue: "Vue",
      "vue-router": "VueRouter",
      vuex: "Vuex",
      echarts: "echarts",
      "element-ui": "ELEMENT",
      "vue-quill-editor": "VueQuillEditor",
    },
  },
});
